package bupt.com.test;

import android.app.Application;
import android.widget.Toast;

/**
 * Created by Wyf on 2016/9/22.
 */

public class MyApplication extends Application{
    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public void onTrimMemory(int level) {
        super.onTrimMemory(level);
        switch (level){
            case TRIM_MEMORY_UI_HIDDEN:
                Toast.makeText(this,"到后台",Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
